<%--引入jstl库依赖--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
<title>订单管理</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<style type="text/css">
	body{ font-family: "微软雅黑"; background-color: #EDEDED; }
	h2{ text-align: center;}
	table{ margin: 0 auto; text-align: center; border-collapse:collapse; font-size:16px;width:90%;}
	td, th{ padding: 7px;}
	th{ background-color: #DCDCDC; width:120px; }
	th.emp{ width: 60px; }
	th.age{ width: 60px; }
	th.doorName,th.time{ width: 200px; }
	hr{ margin-bottom:20px; border:1px solid #aaa; }
	#add-emp{text-align:center;font-size:20px;}
</style>
	
<script type="text/javascript">
	
</script>
</head>
<body>
	<h2>员工管理</h2>
	<div id="add-emp">
		<a href="emp_add" target="rightFrame">新增员工</a>
	</div>
	<hr/>
	<table border="1">
		<tr>
			<th class="emp">序号</th>
			<th>姓名</th>
			<th class="age">年龄</th>
			<th class="time">入职时间</th>
			<th class="doorName">所属门店</th>
			<th>联系方式</th>
			<th>操作</th>
		</tr>
		<!-- 模版数据 -->
		<c:forEach items="${emps}" var="emp" varStatus="status">
			<tr>
				<td>${status.count}</td>
				<td>${emp.name}</td>
				<td>${emp.age}</td>
				<td><fmt:formatDate value="${emp.entry_time}"
									pattern="yyyy-MM-dd HH:mm:ss" /></td>
				<td>${emp.door_name}</td>
				<td>${emp.emp_call}</td>
				<td>
					<a href="empDelete?id=${emp.id}">删除</a>
					&nbsp;|&nbsp;
					<a href="empInfo?id=${emp.id}">修改</a>
				</td>
			</tr>
		</c:forEach>
	</table>
</body>
</html>



